<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/config.inc.php');
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/top.inc.php');


$course_id = $_GET['id'];
$subject_id = $_GET['sid'];

$get_subject_data = mysql_query("SELECT * FROM course_subjects WHERE id = $subject_id");
$subject_name = mysql_result($get_subject_data,0,'subject_title');
$abbreviation = mysql_result($get_subject_data,0,'abbreviation');

$get_course_data = mysql_query("SELECT * FROM courses WHERE id='$course_id'");
$course_number=mysql_result($get_course_data,0,"course_number");

echo "<p>";
	echo "<a href='courses.php?id=$subject_id'>&lt;&lt; Back to Courses Portal</a><br />";
echo "</p>";
echo "<h1>Delete Course for $subject_name</h1>";

//close
mysql_close();

echo "<p>";
echo "Are you sure you want to delete <b>$abbreviation $course_number?</p>";

echo "<form action='delete_do.php' method='post'>";
echo "<input type='hidden' name='sid' value='$subject_id'>";
echo "<input type='hidden' name='id' value='$course_id'>";
echo "<p><input type='submit' value='Yes'></p>";
echo '</form>';




?>
<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/bottom.inc.php');
?>